package com.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.LineTrend;
import com.example.entity.NocvData;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface IndexMapper extends BaseMapper<NocvData> {

    /**
     * 接口只有方法定义，写业务逻辑
     * 1.实现类
     * 2.XML
     * 3.注解
     * @return
     */
    @Select("select * from line_trend order by create_time limit 7")
    List<LineTrend> findSevenData();

    @Select("select * from nocv_data order by id desc limit 34")
    List<NocvData> listOrderByIdLimit34();
}
